<#if isRoot>
[{
	"name": "请选择账号",
	"open":true
	<#if list?size gt 0>,
	"isParent": true,
	"children": [
	<#list list as bean>
		{
		"root": "${bean.id}",
		"name": "${bean.username!}[${bean.searchSettingRole.name}]",
		"isParent": <#if bean.accountCount gt 0>true<#else>false</#if>
		}<#if bean_has_next>,</#if>
	</#list>
	]
	</#if>
}]
<#else>
	[
	<#list list as bean>
		{
		"root": "${bean.id}",
		"name": "${bean.username!}[${bean.searchSettingRole.name}]",
		"isParent": <#if bean.accountCount gt 0>true<#else>false</#if>
		}<#if bean_has_next>,</#if>
	</#list>
	]
</#if>
